const PROXY_TYPES = [
  {
    proxy: 'http://localhost:3000',
    type: 'mock',
  },
  {
    proxy: '',
    type: 'dev',
  },
];
const [MOCK] = PROXY_TYPES;

module.exports = function getProxy(type) {
  const { proxy } = PROXY_TYPES.find(proxy => proxy.type === type) || MOCK;
  return proxy;
};
